package com.ipc.app.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ipc.app.model.Information;
import com.ipc.app.service.InformationService;

@Controller
@RequestMapping(value = "/jsp/detailInformation.do")
public class DetailInformationAction {

	@Autowired
	private InformationService informationService;

	@RequestMapping
	public String getDetailInformation(ModelMap model, String informationID) {
		Information information = informationService
				.getDetailInformation(informationID);
		model.addAttribute("information", information);
		return "detailInformation";
	}
}
